<?php
// +----------------------------------------------------------------------
// | quanli team
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2020 http://www.fistforward.com/ All rights reserved.
// +----------------------------------------------------------------------
// | create by allen.qiang
// +----------------------------------------------------------------------


/**
 * 删除系统缓存
 * @package  htdocs
 * @subpackage  quanliadmin
 * @create by allen.qiang
 */

require 'module/base/systemHandler.class.php';

class pa_systemCache {

    public function execute() {

        $operFlg = isset($_REQUEST['operFlg']) ? $_REQUEST['operFlg'] : null;

        switch ($operFlg) {

            case 1:
                $this->init();
                break;

            default:
                global $G_PGLOB;
                $G_PGLOB->display_error_page("参数错误");
                break;

        }
    }

    //初始化页面
    private function init () {

        global $G_PGLOB;

        //需要删除缓存的目录
        $delArr = array(
            'index' => 'index/',                   //首页缓存目录
            'list' => 'list/',                     //列表页缓存目录
            'goods' =>'goods/',                   //商品详情页缓存目录
            'article' => 'article/'               //文章详情页缓存目录
        );

        $G_PGLOB->smarty->assign_by_ref( 'info' , $delArr );
        $G_PGLOB->smarty->display('system/systemCache.tpl');

    }


}